# -*- coding:utf-8 -*-

# @File     :api_v1_urls
# @Author   :Yupeng
# @Date     :2018/10/27 20:27

from django.urls import re_path, path

from apps.accounts.api_v1 import *

urlpatterns = [
    path(r'users/', user_list, name='user_list'),
    path(r'captcha/', generate_captcha, name='get_captcha'),
    path(r'user/session/', session_api, name='session_api'),
    path(r'user/session/auto/', session_api_auto, name='session_api_auto'),
    path(r'user/email_verification/', resend_verification_email, name='resend_verification_email'),
    re_path(r'users/(?P<username>[\w.@+-]+)/$', user_resource, name='user_resource'),
    re_path(r'users/(?P<username>[\w.@+-]+)/avatar/$', user_avatar, name='user_avatar'),
    path(r'user/password/reset_request/', reset_password_request, name='reset_password_request'),
    path(r'user/password/', reset_password, name='reset_password'),
]
